package net.angrynut.web.model.dto;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import lombok.Data;

@Data
public class LoginForm {

	@NotNull(message = "用户名不可为空")
	@Size(min = 3, max = 32, message = "用户名的长度只能在 3 - 32 之间")
	private String username;

	@NotNull(message = "密码不可为空")
	@Size(min = 3, max = 32, message = "用户名的长度必须在 3 - 32 之间")
	private String password;

}
